package com._5704.website.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class LoginForm {
    @NotNull(message = "电话不能为空")
    @Email(message = "邮箱格式不正确")
    private String id;
    @Size(min = 32,max = 32,message = "密码格式不对")
    @NotNull(message = "密码不能为空")
    private String pwd;
}
